// src/api/userService.js
import apiClient from '../apiClient';

// 供能概览
export const supplyOverview = (time)=>{ 
    return apiClient.post('/aa/supply-overview',{unit:time})
}

// 供能成本
export const supplyFee = (time)=>{ 
    return apiClient.post('/aa/supply-fee',{unit:time})
}

// 供能趋势
export const supplyTrend = (time)=>{ 
    return apiClient.post('/aa/supply-trend',{unit:time})
}

// 综合能效趋势
export const energyEffectTrend = (time)=>{ 
    return apiClient.post('/aa/energy-effect-trend',{unit:time})
}

// 资产统计
export const assetTotal = ()=>{ 
    return apiClient.post('/aa/total',{})
}

// 用能总览
export const usageOverview = (time)=>{ 
    return apiClient.post('/aa/usage-overview',{unit:time})
}

// 分项用能
export const usageItem = (time,type)=>{ 
    return apiClient.post('/aa/usage-item',{unit:time,item_type:type})
}

// 低碳
export const lowCo = (time)=>{ 
    return apiClient.post('/aa/lowco',{unit:time})
}


// export const createUser = (userData) => apiClient.post('/users', userData);


// export const updateUserById = (id, userData) => apiClient.put(`/users/${id}`, userData);
// export const deleteUserById = (id) => apiClient.delete(`/users/${id}`);